package com.stormrage.entity.edu.view;

import java.io.Serializable;

/**
 * @Title: EduChapterVideo.java
 * @Package com.stormrage.entity.edu
 * @Description: 章节、课件关联 Entity 类
 * @author www.stormragetech.com
 * @date 2016年4月8日
 * @version V1.0
 */
public class EduChapterVideo implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -1264191487964456980L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private Integer chapId;

	private Integer videoId;

	// ------------------------------- Fields -------------------------------

	public EduChapterVideo() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getChapId() {
		return chapId;
	}

	public void setChapId(Integer chapId) {
		this.chapId = chapId;
	}

	public Integer getVideoId() {
		return videoId;
	}

	public void setVideoId(Integer videoId) {
		this.videoId = videoId;
	}

	// ------------------------------- Fields -------------------------------

	public static EduChapterVideo instance(Integer chapId, Integer videoId) {
		EduChapterVideo entity = new EduChapterVideo();
		entity.setChapId(chapId);
		entity.setVideoId(videoId);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " chapId - " + chapId + " videoId - " + videoId;
	}

}
